<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "document_article".
 *
 * @property string $id
 * @property integer $parse
 * @property string $content
 * @property string $template
 * @property string $bookmark
 * @property string $keywords
 * @property string $image
 */
class DocumentArticle extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'document_article';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'content', 'keywords', 'image'], 'required'],
            [['id', 'parse', 'bookmark'], 'integer'],
            [['content'], 'string'],
            [['template'], 'string', 'max' => 100],
            [['keywords'], 'string', 'max' => 255],
            [['image'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'parse' => 'Parse',
            'content' => 'Content',
            'template' => 'Template',
            'bookmark' => 'Bookmark',
            'keywords' => 'Keywords',
            'image' => 'Image',
        ];
    }
}
